package com.ihg.hiex.admin.entity.dto;

/**
 * 
 * @author houtao
 *
 */
public class WorkCollaboratively {
    
    private String assessorEvalution;
    
    private String internalBenchmark;
    
    private String externalBenchmark;
    
    private int interactingWithPeople;
    
    private int establishingRapport;
    
    private int convincingPeople;
    
    private int resolvingConflict;
    
    private int invitingFeedback;
    
    private int teamWorking;
    
    private int valuingIndividuals;
    
    private int potential;
    
    /**
     * 
     */
    public WorkCollaboratively() {
    }
    
    /**
     * 
     * @param interactingWithPeople
     * @param establishingRapport
     * @param convincingPeople
     * @param resolvingConflict
     * @param invitingFeedback
     * @param teamWorking
     * @param valuingIndividuals
     */
    public WorkCollaboratively(int interactingWithPeople, int establishingRapport, int convincingPeople, int resolvingConflict, int invitingFeedback, int teamWorking, int valuingIndividuals) {
        this.interactingWithPeople = interactingWithPeople;
        this.establishingRapport = establishingRapport;
        this.convincingPeople = convincingPeople;
        this.resolvingConflict = resolvingConflict;
        this.invitingFeedback = invitingFeedback;
        this.teamWorking = teamWorking;
        this.valuingIndividuals = valuingIndividuals;
        double po = (interactingWithPeople + convincingPeople + resolvingConflict + valuingIndividuals) * 0.0769230769230769
                + (establishingRapport) * 0.153846153846154
                + (invitingFeedback) * 0.230769230769231
                + (teamWorking) * 0.307692307692308;
        this.potential = new Double(po).intValue();
    }
    
    /**
     * 
     * @param assessorEvalution
     * @param internalBenchmark
     * @param externalBenchmark
     * @return
     */
    public WorkCollaboratively init(String assessorEvalution, String internalBenchmark, String externalBenchmark) {
        this.assessorEvalution = assessorEvalution;
        this.internalBenchmark = internalBenchmark;
        this.externalBenchmark = externalBenchmark;
        return this;
    }
    
    /**
     * 
     * @param interactingWithPeople
     * @param establishingRapport
     * @param convincingPeople
     * @param resolvingConflict
     * @param invitingFeedback
     * @param teamWorking
     * @param valuingIndividuals
     * @return
     */
    public WorkCollaboratively init(int interactingWithPeople, int establishingRapport, int convincingPeople, int resolvingConflict, int invitingFeedback, int teamWorking, int valuingIndividuals) {
        this.interactingWithPeople = interactingWithPeople;
        this.establishingRapport = establishingRapport;
        this.convincingPeople = convincingPeople;
        this.resolvingConflict = resolvingConflict;
        this.invitingFeedback = invitingFeedback;
        this.teamWorking = teamWorking;
        this.valuingIndividuals = valuingIndividuals;
        double po = (interactingWithPeople + convincingPeople + resolvingConflict + valuingIndividuals) * 0.0769230769230769
                + (establishingRapport) * 0.153846153846154
                + (invitingFeedback) * 0.230769230769231
                + (teamWorking) * 0.307692307692308;
        this.potential = new Double(po).intValue();
        return this;
    }


    /**
     * @return the assessorEvalution
     */
    public String getAssessorEvalution() {
        return assessorEvalution;
    }

    /**
     * @return the internalBenchmark
     */
    public String getInternalBenchmark() {
        return internalBenchmark;
    }

    /**
     * @return the externalBenchmark
     */
    public String getExternalBenchmark() {
        return externalBenchmark;
    }

    /**
     * @return the interactingWithPeople
     */
    public int getInteractingWithPeople() {
        return interactingWithPeople;
    }

    /**
     * @return the establishingRapport
     */
    public int getEstablishingRapport() {
        return establishingRapport;
    }

    /**
     * @return the convincingPeople
     */
    public int getConvincingPeople() {
        return convincingPeople;
    }

    /**
     * @return the resolvingConflict
     */
    public int getResolvingConflict() {
        return resolvingConflict;
    }

    /**
     * @return the invitingFeedback
     */
    public int getInvitingFeedback() {
        return invitingFeedback;
    }

    /**
     * @return the teamWorking
     */
    public int getTeamWorking() {
        return teamWorking;
    }

    /**
     * @return the valuingIndividuals
     */
    public int getValuingIndividuals() {
        return valuingIndividuals;
    }

    /**
     * @return the potential
     */
    public int getPotential() {
        return potential;
    }

    /**
     * @param assessorEvalution the assessorEvalution to set
     */
    public void setAssessorEvalution(String assessorEvalution) {
        this.assessorEvalution = assessorEvalution;
    }

    /**
     * @param internalBenchmark the internalBenchmark to set
     */
    public void setInternalBenchmark(String internalBenchmark) {
        this.internalBenchmark = internalBenchmark;
    }

    /**
     * @param externalBenchmark the externalBenchmark to set
     */
    public void setExternalBenchmark(String externalBenchmark) {
        this.externalBenchmark = externalBenchmark;
    }

    /**
     * @param interactingWithPeople the interactingWithPeople to set
     */
    public void setInteractingWithPeople(int interactingWithPeople) {
        this.interactingWithPeople = interactingWithPeople;
    }

    /**
     * @param establishingRapport the establishingRapport to set
     */
    public void setEstablishingRapport(int establishingRapport) {
        this.establishingRapport = establishingRapport;
    }

    /**
     * @param convincingPeople the convincingPeople to set
     */
    public void setConvincingPeople(int convincingPeople) {
        this.convincingPeople = convincingPeople;
    }

    /**
     * @param resolvingConflict the resolvingConflict to set
     */
    public void setResolvingConflict(int resolvingConflict) {
        this.resolvingConflict = resolvingConflict;
    }

    /**
     * @param invitingFeedback the invitingFeedback to set
     */
    public void setInvitingFeedback(int invitingFeedback) {
        this.invitingFeedback = invitingFeedback;
    }

    /**
     * @param teamWorking the teamWorking to set
     */
    public void setTeamWorking(int teamWorking) {
        this.teamWorking = teamWorking;
    }

    /**
     * @param valuingIndividuals the valuingIndividuals to set
     */
    public void setValuingIndividuals(int valuingIndividuals) {
        this.valuingIndividuals = valuingIndividuals;
    }

    /**
     * @param potential the potential to set
     */
    public void setPotential(int potential) {
        this.potential = potential;
    }
}
